/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author ylz
 */
@Entity
@Table(name = "news_k16menuitemorder")
//@NamedQueries({@NamedQuery(name = "NewsK16MenuItemOrder.findAll", query = "SELECT n FROM NewsK16MenuItemOrder n"), @NamedQuery(name = "NewsK16MenuItemOrder.findByMenuid", query = "SELECT n FROM NewsK16MenuItemOrder n WHERE n.menuid = :menuid")})
public class NewsK16MenuItemOrder implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "menuid")
    private Integer menuid;
    @Column(name = "menuitemid")
    private Integer menuitemid;
    @Column(name = "menuorder")
    private Integer menuorder;
    
    public NewsK16MenuItemOrder() {
    }

    public NewsK16MenuItemOrder(Integer menuid) {
        this.menuid = menuid;
    }

	public Integer getmenuid() {
		return menuid;
	}

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (menuid != null ? menuid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NewsK16MenuItemOrder)) {
            return false;
        }
        NewsK16MenuItemOrder other = (NewsK16MenuItemOrder) object;
        if ((this.menuid == null && other.menuid != null) || (this.menuid != null && !this.menuid.equals(other.menuid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsK16MenuItemOrder[menuid=" + menuid + "]";
    }

	public Integer getMenuid() {
		return menuid;
	}

	public void setMenuid(Integer menuid) {
		this.menuid = menuid;
	}

	public Integer getMenuitemid() {
		return menuitemid;
	}

	public void setMenuitemid(Integer menuitemid) {
		this.menuitemid = menuitemid;
	}

	public Integer getMenuorder() {
		return menuorder;
	}

	public void setMenuorder(Integer menuorder) {
		this.menuorder = menuorder;
	}

}
